package com.xin.di.uav.applet;

import com.xin.di.uav.applet.header.FeignConfig;
import com.xin.di.uav.common.utils.Rs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 01430312
 */
@Component
//@FeignClient(name = "intra-city-service", configuration = FeignConfig.class)
//@FeignClient(name = "intra-city-service", url = "http://127.0.0.1:8083/uocs-intracity/")
//生产
@FeignClient(name = "intra-city-service", url = "${service.intra-city-service.url}", configuration = FeignConfig.class)
//@FeignClient(name ="intra-city-service")
//测试
//@FeignClient(name = "intra-city-service", url = "http://10.206.52.194:8083/uocs-intracity", configuration = FeignConfig.class)
public interface IntraCityServiceClient {

    @PostMapping("home/order/confirm-for-web")
    String confirmPayForWeb(@RequestParam String outTradeNo);

    @GetMapping("home/airport/is-point-in-polygon")
    Rs<String> isPointInPolygon(@RequestParam double longitude, @RequestParam double latitude);
}
